package com.zxw.gateway.feign;

import com.zxw.common.api.ApiResult;
import com.zxw.common.constant.ApiConst;
import com.zxw.common.entity.gateway.BlackVO;
import com.zxw.common.entity.gateway.LogQuery;
import com.zxw.common.enums.ResultCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 第三方服务接口调用
 * </p>
 *
 * @author zengweixiong
 * @since 2021-12-11
 */
@Component
@FeignClient(value = "zxw-user-server", path = ApiConst.API_PREFIX + "/user")
public interface UserServerFeignApi {

    /**
     * 百度热点列表
     */
    @GetMapping("/black/queryList")
    ApiResult<List<BlackVO>> queryList();

    /**
     * 保存日志
     */
    @PostMapping("/log/save")
    ApiResult<ResultCode> logSave(@RequestBody LogQuery logQuery);




}
